home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / osr5 / shells / bash-2.02 / cntl / ccs
Encoding:
Text File  |  1998-03-22  |  496 b   |  31 lines

  1.  
  2. scriptname="$0"
  3. step="$1"
  4. keywords="$2"
  5. pkglist="$3"
  6.  
  7. # Source in the standard functions library, ccsSetup.sh
  8. . ccsSetup.sh
  9.  
  10. doPostExport() {
  11.     grep /bash /etc/shells > /dev/null || {
  12.     echo "/bin/bash" >> /etc/shells
  13.     }
  14. }
  15.  
  16. doPostRemove() {
  17.     grep -v /bin/bash /etc/shells > /tmp/shells$$
  18.     cp /tmp/shells$$ /etc/shells
  19.     rm -f /tmp/shells$$
  20. }
  21.  
  22. ccs_return_value=0
  23.  
  24. case "$step" in
  25.         POST_EXPORT) doPostExport ;;
  26.         POST_REMOVE) doPostRemove ;;
  27. esac
  28.  
  29. exit $ccs_return_value
  30.  
  31.